package vg.com.parse;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONArray;
import org.json.JSONObject;

import android.util.Log;

public class UserFuntion1 {
	
private JSONParser jsonParser;
	
	private static String loginURL = "http://192.168.0.132/json/users.php";
	
	
	public JSONArray loginUser(String email, String password){
		// Building Parameters
		List<NameValuePair> params = new ArrayList<NameValuePair>(); 
//		params.add(new BasicNameValuePair("tag", login_tag));
		params.add(new BasicNameValuePair("use_login", email));
		params.add(new BasicNameValuePair("use_password", password));
		JSONArray json = jsonParser.getJSONArrayFromUrl(loginURL, params);
		// return json
		 Log.e("JSON LoginUserAraayyyyyy", json.toString());
		return json;
		
	}
	
}
